package com.icangya.DAO;

import com.icangya.domain.FbTurntableRecord;

import java.util.List;

public interface IFbTurntableRecordDAO extends IBaseDAO<FbTurntableRecord> {


    /**
     * 查询用户未抽取的奖励
     * @param uid
     * @return
     */
    List<FbTurntableRecord>  getFbTurntableRecord(long uid);

    /**
     * 获取用户未领取的奖励次数
     * @param openId
     * @return
     */
    Long getFbTurntableRecordCount(String openId);

    /**
     * 查询系统当天赠送的记录
     * @param missionId    0
     * @return
     */
    FbTurntableRecord getTurntableRecordBySystem(long missionId,String openId);
}
